home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 476-500 / disk_497 / nlcalc / source / cloader.h < prev    next >
C/C++ Source or Header  |  1992-05-06  |  2KB  |  67 lines

  1. /*
  2.  *  CALC      Provides a calculator that opens on the active screen when
  3.  *            you press a specific key sequence.  Otherwise, the program
  4.  *            waits quitely in the background.
  5.  *
  6.  *              Copyright 1989 by Davide P. Cervone.
  7.  *  You may use this code, provided this copyright notice is kept intact.
  8.  */
  9.  
  10. #define INTUITION_PREFERENCES_H         /* don't need 'em */
  11. #include <intuition/intuitionbase.h>
  12. #include <exec/memory.h>
  13. #include <devices/input.h>
  14. #include <libraries/dos.h>
  15. #include <libraries/dosextens.h>
  16.  
  17. #include "cSetup.h"
  18.  
  19.  
  20. #define PROGRAM         "Screen Calculator"
  21. #define COPYRIGHT       "Copyright 1989 by Davide P. Cervone"
  22. #define LOADVERS        2
  23.  
  24. #define MINHMAJVERS     3
  25. #define MINHMINVERS     1
  26.  
  27. #define HANDLERCODE     "L:Calc-Handler"        /* the handler file */
  28. #define HANDLERTASKNAME "Calc-Handler"          /* the task name */
  29.  
  30.  
  31. #define INTUITION_REV       0L
  32. #define GRAPHICS_REV        0L
  33. #define EXIT_OK             RETURN_OK
  34. #define EXIT_ERROR          RETURN_ERROR
  35.  
  36. #define ONE                 1L
  37.  
  38.  
  39. #define NEWPORT(p)\
  40.    if ((p = CreatePort(0L,0L)) == NULL) DoExit("Can't Create p Port")
  41.  
  42. #define MEMFLAGS        (MEMF_PUBLIC | MEMF_CLEAR)
  43.  
  44. #define NEWSTRUCT(s,p)    (p = (struct s *)AllocMem(sizeof(struct s),MEMFLAGS))
  45. #define FREESTRUCT(s,p)   FreeMem(p,sizeof(struct s))
  46.  
  47. #define NEWSTARTUP(s)   NEWSTRUCT(StartupMessage,s)
  48. #define FREESTARTUP(s)  FREESTRUCT(StartupMessage,s)
  49. #define GETSTARTUP(p)   ((struct StartupMessage *)GetMsg(p))
  50.  
  51.  
  52. extern struct IntuitionBase *IntuitionBase;
  53. extern struct GfxBase *GfxBase;
  54.  
  55. /*
  56.  *  Offset values used by SetFunction
  57.  */
  58.  
  59. extern long LVOCloseScreen;
  60.  
  61.  
  62. extern struct Process *CreateProc();
  63. extern long SetFunction();
  64. extern struct MsgPort *FindPort();
  65. extern struct MsgPort *CreatePort();
  66. extern struct Process *FindTask();
  67.